package ngat.oss.scheduling.auctions;

/** Base class for events relating to auction protocols.*/
public class AuctionEvent {

    /** A unique ID for the auction.*/
    private int auctionId;

    /** The time of the event.*/
    private long timeStamp;

    /** */
    public AuctionEvent(long timeStamp, int auctionId) {
	this.auctionId = auctionId;
	this.timeStamp = timeStamp;
    }

    /** Returns the Auction ID.*/
    public int getAuctionId() { return auctionId; }

    /** Returns a readable representation of this AuctionEvent.*/
    public String toString() { 
	return "AuctionEvent@"+timeStamp+":"+auctionId;
	// e.g. AuctionEvent@1102293933:AX67B etc
    }
}
